
#ifndef __BLOCK_DEVICE_CONFIG_H__
#define __BLOCK_DEVICE_CONFIG_H__

//config 

#define BD_Sec_Active		0
#define BD_Sec_Env			1
#define BD_Sec_TTS			2
// Sector 2 ~ 15 reserve	

// config address
#define BD_ActiveAddress	(BD_Sec_Active * BD_SectorSize + 35)
#define BD_EnvAddress		(BD_Sec_Env * BD_SectorSize)
#define BD_TTSAddress		(BD_Sec_TTS * BD_SectorSize)
/*--------------------------------------------------------*/
//user
#define BD_Sec_UserNum		240
#define BD_Sec_UserStart	16
#define BD_Sec_UserInfoNum	16
#define BD_Sec_UserData		(BD_Sec_UserStart + BD_Sec_UserInfoNum)
#define BD_Sec_UserDataNum	(BD_Sec_UserNum - BD_Sec_UserInfoNum)

//user address
#define BD_UserAddress		(BD_Sec_UserStart * BD_SectorSize)
#define BD_UserDataAddress	(BD_Sec_UserData * BD_SectorSize)
/*--------------------------------------------------------*/
//qr user
#define BD_Sec_QrUserNum	256
#define BD_Sec_QrUserStart	(BD_Sec_UserStart + BD_Sec_UserNum)
#define BD_Sec_QrUserInfoNum	16
#define BD_Sec_QrUserData	(BD_Sec_QrUserStart + BD_Sec_QrUserInfoNum)
#define BD_Sec_QrUserDataNum	(BD_Sec_QrUserNum - BD_Sec_QrUserInfoNum)

//qr user address
#define BD_QrUserAddress	(BD_Sec_QrUserStart * BD_SectorSize)
/*--------------------------------------------------------*/
//log
#define BD_Sec_LogNum		512
#define BD_Sec_LogStart		(BD_Sec_QrUserStart + BD_Sec_QrUserNum)
#define BD_Sec_LogInfoNum	32
#define BD_Sec_LogData		(BD_Sec_LogStart + BD_Sec_LogInfoNum)
#define BD_Sec_LogDataNum	(BD_Sec_LogNum - BD_Sec_LogInfoNum)

//log address
#define BD_LogAddress		(BD_Sec_LogStart * BD_SectorSize)
#define BD_LogDataAddress	(BD_Sec_LogData * BD_SectorSize);

#endif


